<template>
  <div class="hello">
    <!-- 删除原内容结构 -->
    <div class="dashboard-grid">
      <div class="dashboard-card">
        <h2>实验室概况</h2>
        <div class="card-content">
          <p>当前在线设备：<span class="highlight">58台</span></p>
          <p>今日预约人次：<span class="highlight">127人</span></p>
        </div>
      </div>

      <div class="dashboard-card">
        <h2>快速入口</h2>
        <div class="card-content">
          <router-link to="/equipment-reserve" class="quick-link">设备预约</router-link>
          <router-link to="/lab-status" class="quick-link">实时状态</router-link>
          <router-link to="/data-report" class="quick-link">数据报表</router-link>
        </div>
      </div>

      <div class="dashboard-card">
        <h2>通知公告</h2>
        <div class="card-content">
          <div class="notice-item">
            <h3>系统维护通知</h3>
            <p>2024-05-01 凌晨2:00-4:00进行系统升级</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped>
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.dashboard-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.card-content {
  padding: 1rem;
}

.highlight {
  color: #42b983;
  font-weight: 600;
}

.quick-link {
  display: block;
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.quick-link:hover {
  background: #42b983;
  color: white;
}

.notice-item {
  padding: 1rem;
  background: #fff9f2;
  border-left: 4px solid #f1c40f;
  margin: 0.5rem 0;
}
</style>